package edu.xhu.model.video.pojos;

import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * bili视频表
 * </p>
 *
 * @author author
 * @since 2024-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bili_video")
@ApiModel(value = "BiliVideo对象", description = "bili视频表,bili_video")
public class BiliVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频id")
    @TableId(value = "video_id")
    private Long videoId;

    @ApiModelProperty(value = "投稿用户id，外码")
    private Long userId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "制作类型")
    private String createType;

    @ApiModelProperty(value = "作者声明")
    private String auth;

    @ApiModelProperty(value = "视频类型")
    private String videoType;

    @ApiModelProperty(value = "视频状态")
    private String state;

    @ApiModelProperty(value = "子分区id，外码")
    private Long subChannelId;

    @ApiModelProperty(value = "视频标签，逗号分隔(如果有类型，则是风格)")
    private String tags;

    @ApiModelProperty(value = "简介")
    private String description;

    @ApiModelProperty(value = "封面url")
    private String coverUrl;

    @ApiModelProperty(value = "视频url")
    private String videoUrl;

    @ApiModelProperty(value = "上传时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "删除时间")
    private LocalDateTime deleteTime;

    @ApiModelProperty(value = "播放时长，单位秒")
    private Long duration;

    @ApiModelProperty(value = "是否合集")
    private String isCompilation;

    @ApiModelProperty(value = "是否置顶")
    private String isTop;

    @ApiModelProperty(value = "更新至多少集")
    private Integer updateEpisode;

    @ApiModelProperty(value = "每周几更新")
    private String episodeTime;

    @ApiModelProperty(value = "封面后端url")
    private String coverPathUrl;
    @ApiModelProperty(value = "视频后端url")
    private String videoPathUrl;
}
